package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {

    /**
     * 查询所有频道
     * @return
     */
    ResponseResult findAll();

    /**
     * 分页查询频道
     * @param
     * @return
     */
    ResponseResult getChannelPage(ChannelDto dto);

    /**
     * 根据ID删除频道
     * @param id
     * @return
     */
    ResponseResult deleteChannel(Integer id);

    /**
     * 频道新增
     * @param wmChannel
     * @return
     */
    ResponseResult channelSave(WmChannel wmChannel);

    /**
     * 修改频道
     * @param wmChannel
     * @return
     */
    ResponseResult channelUpdate(WmChannel wmChannel);
}
